package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {


    /**
     * 添加菜品及其口味
     * @param dishDTO
     */
    public void addDishWithFlavors(DishDTO dishDTO);

    /**
     * 分页查询菜品
     * @param dishPageQueryDTO
     * @return
     */
    PageResult pageDish(DishPageQueryDTO dishPageQueryDTO);

    DishVO getDishById(Long id);

    List<Dish> listDishByCategoryId(Long categoryId);

    void updateDishWithFlavors(DishDTO dishDTO);

    void deleteDish(List<Long> ids);

    void updateDishStatus(Integer status, Long id);
}
